﻿/*
=============================================================================
Author:魏宝辉通过CodeSmithe生成
CreatedTime:2012-8-12
Description:master三层结构业务逻辑层
=============================================================================
*/
using System;
using System.Collections.Generic;
using System.Text;
using FTchina.DAL;
using FTchina.Models;
namespace FTchina.BLL
{
	public static partial class MasterManager
	{
		public static int AddMaster(Master master)
		{
			return MasterService.AddMaster(master);
		}
		public static int DeleteMasterByid(int id)
		{
			return MasterService.DeleteMasterById(id);
		}
		
		public static int ModifyMasterByid(Master master)
		{
			return MasterService.ModifyMasterByid(master);
		}
		
		
		public static IList<Master> GetAllMasters()
		{
			return MasterService.GetAllMasters();
		}
		public static Master GetMasterByid(int id)
		{
			return MasterService.GetMasterByid(id);
		}
		//分页查询 curragePage当前页NUMCount每页条数
		public static IList<Master> ShowmasterForPage(int curragePage,int NUMCount)
		{
			return 	MasterService.ShowmasterForPage(curragePage,NUMCount);
		}
	}
}
